using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Imageological_checkMap : EntityTypeConfiguration<Imageological_check>
    {
        public Imageological_checkMap()
        {
            // Primary Key
            this.HasKey(t => t.Imageological_check_id);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.update_by)
                .HasMaxLength(20);

            this.Property(t => t.electrocardiogram)
                .HasMaxLength(1000);

            this.Property(t => t.ultrasonic_cardiogram)
                .HasMaxLength(1000);

            this.Property(t => t.carotid_artery_sonography)
                .HasMaxLength(1000);

            this.Property(t => t.hypertension_fundus)
                .HasMaxLength(20);

            this.Property(t => t.heart_contours)
                .HasMaxLength(1);

            this.Property(t => t.large_artery)
                .HasMaxLength(1);

            this.Property(t => t.pulmonary_circulation)
                .HasMaxLength(1);

            // Table & Column Mappings
            this.ToTable("Imageological_check");
            this.Property(t => t.Imageological_check_id).HasColumnName("Imageological_check_id");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.update_time).HasColumnName("update_time");
            this.Property(t => t.update_by).HasColumnName("update_by");
            this.Property(t => t.electrocardiogram).HasColumnName("electrocardiogram");
            this.Property(t => t.ultrasonic_cardiogram).HasColumnName("ultrasonic_cardiogram");
            this.Property(t => t.carotid_artery_sonography).HasColumnName("carotid_artery_sonography");
            this.Property(t => t.intima_media_thickness_LCA).HasColumnName("intima_media_thickness_LCA");
            this.Property(t => t.intima_media_thickness_RCA).HasColumnName("intima_media_thickness_RCA");
            this.Property(t => t.hypertension_fundus).HasColumnName("hypertension_fundus");
            this.Property(t => t.heart_contours).HasColumnName("heart_contours");
            this.Property(t => t.large_artery).HasColumnName("large_artery");
            this.Property(t => t.pulmonary_circulation).HasColumnName("pulmonary_circulation");
            this.Property(t => t.PWV).HasColumnName("PWV");
            this.Property(t => t.ABI).HasColumnName("ABI");
        }
    }
}
